package com.dreammakerteam.frameworkdemo.qzhj.config;


import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 清真货架使用的solr客户端
 * @author xy
 * @version 0.1
 */
@Configuration
public class SolrConfig {

    @Bean
    public SolrClient qzhjSolrClient() {
        return  new HttpSolrClient.Builder("http://localhost:8983/solr/jcg").build();
    }





}
